package com.yt.ootest.Command;

/**
 * Created by Administrator on 2019/2/19 9:43
 * 调用者
 */
public class Invoker  {

    private Command command;
    public Invoker(Command command){
        this.command=command;
    }
    public void setCommand(Command command){
        this.command=command;
    }
    public void call()
    {
        System.out.println("调用者执行命令command...");
        command.execute();
        //2222
    }


}
